Code pattern for providing information and decoding method and image processing device

ABSTRACT

A code pattern for providing information is disclosed, which can effectively improve the ratio of effective marks, and the effective marks are distributed in a rhombus area. The code pattern comprises: a plurality of nominal positions and a plurality of information marks. The nominal positions are respectively located at a plurality of intersections of a plurality of first hypothetical lines and a plurality of second hypothetical lines, and the first hypothetical lines are parallel to one diagonal line within the rhombus area. The plurality of information marks are respectively disposed within the area formed by the nominal positions, and each information mark is used to represent one of at least two values.

FIELD OF THE INVENTION

The present invention relates to a code pattern, and particularly to a code pattern with rhombus area distribution.

BACKGROUND OF THE INVENTION

Prior art about code pattern and code patterns were disclosed in Japanese Invention Patent Application Publication No. 2007-11890, U.S. Patent Application Publication No. US2007/0246547, Taiwanese Patent Application Publication No. 094205159, U.S. Patent Application Publication No. US2003/011164, and U.S. Patent Application Publication No. US2006/0007255.

FIG. 1 shows an example of the conventional code pattern and the conventional code patterns. All of the marks 10 a for the conventional code pattern 10 are arranged in a square, and all of the conventional code patterns 10 are arranged together, which are also arranged as a conventional code patterns 1 in a square.

FIG. 2 shows an example of the conventional code pattern arranged in a square. In the conventional code pattern 10 shown as FIG. 2, there are 16 marks for boundary (marked with “”), and 3 marks for orientation (marked with “▴”), and 13 marks for information (marked with “▪”), so that the ratio of effective marks is 40%, i.e. 13/(16+3+13)=40%.

FIG. 3 shows another example of the conventional code pattern arranged in a square. In the code pattern shown as FIG. 3, there are 7 marks for boundary (marked with “”), and 9 marks for information (marked with “▪”), so that the ratio of effective mark is 56%, i.e. 9/(7+9)=56%.

In view of the necessity of further improvement on the ratio of effective mark achieved by the conventional coding method of the conventional code pattern, the inventors of the present invention worked hard and proposed a code pattern with a rhombus area distribution, which can effectively improve the ratio of effective marks.

SUMMARY OF THE INVENTION

The object of the present invention is to provide a code pattern, which can effectively improve the ratio of effective marks.

The another object of the present invention is to provide a decoding method for each code pattern, which can decode the information represented by each information mark of the code pattern in a rhombus area distribution.

The further another object of the present invention is to provide an image processing device for processing the code pattern, which can process the code pattern in a rhombus area distribution, and output the information represented by each information mark of the code pattern.

In order to accomplish the object of the present invention, the present invention provides a code pattern for providing information according to claim 1 and claim 7.

In order to accomplish the another object of the present invention, the present invention provides a decoding method or a reading method for each code pattern according to claim 13.

In order to accomplish the further another object of the present invention, the present invention provides an image processing device for processing code pattern according claim 18.

BRIEF DESCRIPTION OF DRAWINGS

The following illustrative embodiments and accompanying drawings are provided to illustrate these and other advantages, effects, and structural features of the present invention.

FIG. 1 shows an example of the conventional code pattern and the conventional code patterns;

FIG. 2 shows an example of the conventional code pattern arranged in a square;

FIG. 3 shows another example of the conventional code pattern arranged in a square;

FIG. 4A shows a diagram of the code patterns for providing information according to the present invention;

FIG. 4B shows a variance diagram of the code patterns for providing information according to the present invention;

FIG. 5 shows an embodiment of the code pattern for providing information according to the present invention;

FIG. 6 shows a diagram of the code patterns according to the present invention;

FIG. 7 shows an embodiment of the code patterns for providing information according to the present invention;

FIG. 8 shows an example of printing quality of the code patterns according to the present invention;

FIG. 9 shows an example of printing position of information marks for the code pattern according to the present invention;

FIG. 10A˜10D show coding examples of the low shift information marks of the code pattern according to the present invention;

FIG. 11A˜11D show coding examples of the high shift information marks of the code pattern according to the present invention;

FIG. 12A˜12H show other coding examples of the low shift information marks of the code pattern according to the present invention;

FIG. 13A˜13H show other coding examples of the high shift information marks of the code pattern according to the present invention;

FIG. 14A˜14D show further other coding examples of the low shift information marks of the code pattern according to the present invention;

FIG. 15A˜15D show further other coding examples of the high shift information marks of the code pattern according to the present invention;

FIG. 16A shows an orthogonal arrangement variance diagram for code patterns for providing information according to the present invention;

FIG. 16B shows an embodiment of FIG. 16A;

FIG. 17A shows another orthogonal arrangement variance diagram for code patterns for providing information according to the present invention;

FIG. 17B shows an embodiment of FIG. 17A;

FIG. 18 shows a flow chart of decoding method for code pattern according to the present invention; and

FIG. 19 shows a structural diagram of image processing device for processing code pattern according to the present invention.

DETAILED DESCRIPTION OF THE INVENTION

Please refer to FIG. 4A to FIG. 17B. The code pattern 20 according to the present invention is provided with a plurality of marks 20 a, and the arrangement method for the marks 20 a is to be arranged in a rhombus area 4. In the rhombus area 4, a plurality of nominal positions n, n=0, 1, 2, . . . , 11, are located at a plurality of intersections of a plurality of first hypothetical lines 41 and a plurality of second hypothetical lines 43.

In the code pattern 20, a plurality of first hypothetical lines 41 can be employed as being parallel to one diagonal line in the rhombus area 4, and a plurality of second hypothetical lines 43 can be employed as being parallel to another diagonal line in the rhombus area 4. The first hypothetical lines 41 and the second hypothetical lines 43 will divide the interior area of the rhombus area 4 into a plurality of nominal grids.

In FIG. 5, within the rhombus area 4, the present invention selects the marks 20 a disposed on two neighbored sides on the upper half of the code pattern 20 as the boundary marks (marked with “”) for boundary. At the same time, one mark 20 a of the code pattern 20 which is located at one nominal position is selected to be the orientation mark for orientation (marked with “▴”). The other marks 20 a are used as the information marks to provide information (marked with “▪”). For the convenience of description, the numerical reference appeared in FIG. 4A to FIG. 17A are used to indicate the locations of information marks in the code pattern 20. The marks 20 a employs different shapes of marking, such as “”, “▴”, and “▪”, only for the purpose of easy understanding of the disclosure. Practically, the marks 20 a for boundary function, orientation function and information function respectively can employ the same shape of marking.

The actual arrangement location for each information mark 20 a will have a displacement with orientation and distance to the corresponding nominal position n.

In FIG. 5, the code pattern 20 according to the present invention only needs five boundary marks and one orientation mark, and can accommodate 12 information marks. The ratio of effective mark is 72%, i.e. 12/(5+1+12)=72%. Comparing to the ratio of effective mark of the conventional code pattern in FIG. 2 and FIG. 3, the code pattern according to the present invention not only has the minimum required boundary marks, but also has the highest ratio of effective mark.

FIG. 4A shows an example of code patterns 2 according to the present invention, and FIG. 4B shows another example of code patterns 2 according to the present invention. The numerical reference appeared in the rhombus area 4 are used to indicate the nominal position n (n=0, 1, 2, . . . , 11). Each information mark 20 a is located at a position having a displacement with orientation and distance to the corresponding nominal position n.

FIG. 6 shows a diagram of the code patterns according to the present invention. The individual code pattern 20 is located in individual rhombus area 4. Each of the rhombus areas 4 is neighbored to each other. FIG. 7 shows an embodiment of the code patterns for providing information according to the present invention. The four code patterns 20-23 are arranged as the code patterns 2 in the rhombus area, and neighbored two code patterns 20, 21, code patterns 20, 22, code patterns 22, 23, and code patterns 21, 23 are all neighbored to each other in the slanting direction (the slanting direction from upper right to lower left, or the slanting direction from upper left to lower right).

FIG. 8 shows an example of printing quality of the code patterns according to the present invention. Taking printing in 1,200 DPI for example, the diameter of each carbon dot by 1,200 DPI laser printer is about 21 um. The present invention employs 9 carbon dots to print out each mark 20 a of the code pattern, i.e. composing a mark 20 a with 3*3 carbon dot matrix, so that the diameter of the mark 20 a is three carbon dots, i.e. 63 um. The interval for the nominal position n employs 0.3 mm as distance.

FIG. 9 shows an example of printing positions for information mark of code pattern according to the present invention. For example, the interval of neighbored two nominal positions n employs 0.3 mm as distance. Therefore, as for a nominal position n, a square are of 0.3 mm*0.3 mm using the nominal position n as the center can be further divided into 25 square areas in 63 um*63 um. In an embodiment of the present invention, the position 13 of the square area in 63 um*63 um can only be a reference of the nominal position n, not be the printing position of information mark 20 a. The positions 1-12 and 14-25 are respectively located around the nominal position n, and using the nominal position n as the center position (position 13), and the positions 1-12 and 14-25 can be used as the printing positions for information marks 20 a.

Similarly, as for the other nominal positions not used as the information marks 20 a, the areas formed by the nominal positions can also be used as the printing positions of orientation marks 20 a.

FIG. 10A˜10D show the coding examples for low shift information marks of code pattern according to the present invention, and FIG. 11A˜11D show the coding examples for high shift information marks of code pattern according to the present invention. According to the length of distance for the displacement between the information marks 20 a and the nominal positions n, the information marks 20 a can be further divided into the low shift information marks and the high shift information marks. For example, the displacement distance of the information marks in FIG. 10A˜10D is shorter, so the information marks are the low shift information marks 20 a; and the displacement distance of the information marks in FIG. 11A˜11D is longer, so the information marks are the high shift information marks 20 a. In FIG. 10A˜10D, the information marks 20 a select respectively the positions 14, 8, 12 and 18 as the printing positions of the low shift information marks, and these low shift information marks 20 a respectively represent the low shift information code 00, the low shift information code 01, the low shift information code 10 and the low shift information code 11. In FIG. 11A˜11D, the information marks 20 a select respectively the positions 14, 8, 12 and 18 as the printing positions of the high shift information marks, and these high shift information marks 20 a respectively indicates the high shift information code 00, the high shift information code 01, the high shift information code 10 and the high shift information code 11.

FIG. 12A˜12H show other coding examples of the low shift information marks for the code pattern according to the present invention, and FIG. 13A˜13H show other coding examples of the high shift information marks for the code pattern according to the present invention. According to the length of distance for the displacement between the information mark 20 and the nominal position n, the information marks 20 a can further be divided into the low shift information marks and the high shift information marks. For example, the displacement distance of the information marks 20 a in FIG. 12A˜12H is shorter, so the information marks are the low shift information marks; and the displacement distance of the information marks 20 a in FIG. 13A˜13H is longer, so the information marks are the high shift information marks. In FIG. 12A˜12H, the information marks 20 a select respectively the positions 9, 14, 19, 18, 17, 12, 7 and 8 as the printing positions of the low shift information marks, and these low shift information marks 20 a respectively represent the low shift information code 000, the low shift information code 001, the low shift information code 010, the low shift information code 011, the low shift information code 100, the low shift information code 101, the low shift information code 110, and the low shift information code 111. In FIG. 13A˜13H, the information marks 20 a select respectively the positions 5, 15, 25, 23, 21, 11, 1 and 3 as the printing positions of the high shift information marks, and these high shift information marks 20 a respectively represent the high shift information code 000, the high shift information code 001, the high shift information code 010, the high shift information code 011, the high shift information code 100, the high shift information code 101, the high shift information code 110, and the high shift information code 111.

FIG. 14A˜14D show further other coding examples of the low shift information marks for the code pattern according to the present invention, and FIG. 15A˜15D show further other coding examples of the high shift information marks for the code pattern according to the present invention. According to the length of distance for the displacement between the information mark 20 and the nominal position n, the information marks 20 a can further be divided into the low shift information marks and the high shift information marks. For example, the displacement distance of the information marks 20 a in FIG. 14A˜14D is shorter, so the information marks are the low shift information marks; and the displacement distance of the information marks 20 a in FIG. 15A˜15D is longer, so the information marks are the high shift information marks. In FIG. 14A˜14D and FIG. 15A˜15D, the amount of displacement distance is changed from the original 63 um to 42 um, which is ⅔ of 63 um, so that the arrangement of marks can be more uniform, and has smaller visual impact. The low shift information marks 20 a in FIG. 14A˜14D represent respectively the low shift information code 00, the low shift information code 01, the low shift information code 10, and the low shift information code 11. The high shift information marks 20 a in FIG. 15A˜15D represent respectively the high shift information code 00, the high shift information code 01, the high shift information code 10, and the high shift information code 11.

It is further described for the varied example of the configuration method for the information mark 20 a. The information mark 20 a can be disposed around the nominal position n. In this varied example, the value represented by the information mark 20 a is related to the orientation with respect to the nominal position n. In another varied example, the value represented by the information mark 20 a is related to the orientation and distance with respect to the nominal position n.

It is further described for another varied example of the configuration method for the information mark 20 a. The information mark 20 a can be disposed at one of the positions 1˜25. In this varied example, the value represented by the information mark 20 a depends on which one of positions 1˜25 the information mark 20 a is disposed at.

It is further described for yet another varied example of the configuration method for the information mark 20 a. The information mark 20 a can be disposed at one position of the area of the positions 1˜25 of the nominal position n. The value represented by the information mark 20 a is related to the orientation with respect to the position 13, or related to the orientation and distance with respect to the position 13.

FIG. 16A shows an orthogonal arrangement variance diagram for code patterns for providing information according to the present invention, and FIG. 16B shows an embodiment of FIG. 16A. Please also refer to FIG. 4A, in which it is assumed that the four code patterns in FIG. 4A and the four code patterns in FIG. 16A are all used to indicate the same information, such as indicating the information of letter “A.” The four code patterns in FIG. 4A are employed with the means of repetitive code patterns. Further referring to FIG. 7, the four code patterns 20-23 are all used to indicate the same information and the arrangement is employed with repetitive code patterns. The configuration method for code pattern in orthogonal arrangement method according to the present invention can be used to reduce the visual impact. In FIG. 16A, the neighbored code patterns 20′ and 21′, code patterns 20′ and 22′, code patterns 22′ and 23′, and code patterns 21′ and 23′ in the slanting direction (the slanting direction from upper right to lower left, and the slanting direction from upper left to lower right) are in orthogonal arrangement to each other. And, the four code patterns 20′˜23′ shown in FIG. 16B are all used to indicate the same information, which is an example of configuration in orthogonal arrangement.

FIG. 17A shows another orthogonal arrangement variance diagram for code patterns for providing information according to the present invention, and FIG. 17B shows an embodiment of FIG. 17A. Similarly, in FIG. 17A, the neighbored code patterns 20′ and 21′, code patterns 20′ and 22′, code patterns 22′ and 23′, and code patterns 21′ and 23′ in the slanting direction (the slanting direction from upper right to lower left, and the slanting direction from upper left to lower right) are in orthogonal arrangement to each other. And, the four code patterns 20′˜23′ shown in FIG. 17B are all used to represent the same information, which is an example of configuration in orthogonal arrangement.

FIG. 18 shows a flow chart of decoding method for each code pattern according to the present invention. The decoding method 6 according to the present invention is used to explain each mark 20 a of the code pattern 20. The decoding method 6 includes the steps 61˜65, which are respectively described as follows.

Step 61 is to search and determine a plurality of boundary marks 20 a from the marks 20 a of the code pattern 20. Thus, the boundary marks 20 a can be employed to determine the above-mentioned nominal positions for the code pattern 20. Because the boundary marks 20 a according to the present invention are disposed on the neighbored two sides of the rhombus area 4, the boundary marks 20 a can be uses as the boundary of the code pattern 20, and further determine a rhombus area where a code pattern 20 can embrace. Step 63 is to search and determine at least one orientation mark 20 a from the marks 20 a of the code pattern 20. Thus, the orientation marks 20 a can be employed to determine the orientation. Step 65 is to search and determine the information marks 20 a from the marks 20 a of the code pattern 20, and, based on the location of each information mark 20 a, it is determined if the information marks 20 a are the low shift information marks or the high shift information marks, i.e. to determine the information code indicated by the information mark 20 a.

FIG. 19 shows a structural diagram of an image processing device for processing the code pattern according to the present invention. The image processing device 3 is used to process the code pattern and the code patterns according to the present invention, and output an output signal of information corresponding to the code patterns. The image processing device 3 comprises: a first device 31 and a second device 33, which are respectively described as follows. The first device 31 is used to optically read the code patterns, such as reading the code pattern 20 and the code patterns 2 in FIG. 7 and FIG. 17, and is used to convert the code pattern 20 and the code patterns 2 into the corresponding digital signals after optical reading. The second device 33 is connected to the first device 31, and the second device 33 is used to process the digital signal, and output the signal of the information code represented by each information mark 20 a of the code pattern 20 and the code patterns 2. The specific component for the first device 31 can employ the imaging component at least comprising CCD camera, and the specific component for the second device 33 can employ the component at least comprising the digital signal processor (DSP). In the second device 33, the DSP can be used to execute the firmware, which is specifically implemented according to the decoding method 6 described above.

The code pattern in rhombus area distribution according to the present invention can effectively improve the ratio of effective mark, and also reduce the visual impact, which are the advantages of the present invention.

The above detailed descriptions are only for the preferred embodiments according to the present invention, which cannot be used to limit the scope of the application for the present invention. Those skilled in the art substantially can make a variety of changes and modification, which shall not depart from the substantial content of the present invention. 

1. A code pattern for providing information, which is distributed in a rhombus area, the code pattern comprising: a plurality of nominal positions, which are respectively located at a plurality of intersections of a plurality of the first hypothetical lines and a plurality of the second hypothetical lines, wherein the first hypothetical lines are parallel to one diagonal line of the rhombus area; and a plurality of information marks, which are respectively disposed in areas formed by the nominal positions, wherein each said information mark represents one of at least two values.
 2. The code pattern according to claim 1, further comprises: a plurality of boundary marks, which are respectively disposed on two neighbored sides of the rhombus area.
 3. The code pattern according to claim 1, wherein the value represented by each said information mark is related to the position at which the information mark is located within the area formed by the corresponding nominal position.
 4. The code pattern according to claim 1, wherein the value represented by each said information mark is related to the orientation of the information mark with respect to the center of the area formed by the corresponding nominal position.
 5. The code pattern according to claim 2, further comprises: at least one orientation mark, which are disposed within the areas formed by the nominal positions.
 6. The code pattern according to claim 1, wherein the second hypothetical lines are parallel to another diagonal line of the rhombus area.
 7. A code pattern for providing information, which is distributed in a rhombus area, the code pattern comprising: a plurality of nominal positions, which are respectively located at a plurality of intersections of a plurality of the first hypothetical lines and a plurality of the second hypothetical lines, wherein the first hypothetical lines are parallel to one diagonal line of the rhombus area; and, a plurality of information marks, which are respectively disposed around the corresponding nominal positions, wherein each information mark represents one of at least two values.
 8. The code pattern according to claim 7, wherein, the value represented by the information mark is related to the orientation of the information mark with respect to the corresponding nominal position.
 9. The code pattern according to claim 7, further comprises: a plurality of boundary marks, which are respectively disposed on two neighbored sides of the rhombus area.
 10. The code pattern according to claim 9, further comprises: at least one orientation mark, which are disposed respectively around the corresponding nominal positions.
 11. The code pattern according to claim 7, wherein the second hypothetical lines are parallel to another diagonal line of the rhombus area.
 12. The code pattern according to claim 8, wherein each information mark is adjacently disposed or remotely disposed at the corresponding nominal position, so as to represent different values.
 13. A data reading method for code pattern, comprising the following steps: searching a plurality of boundary marks from a code pattern; defining a rhombus area according to the boundary marks, wherein the rhombus area comprises at least a plurality of information marks; defining a plurality of nominal positions with the rhombus area, wherein the positions of the nominal positions are the same as the intersections of a plurality of first hypothetical lines and a plurality of second hypothetical lines, and wherein the first hypothetical lines and the second hypothetical lines are respectively parallel to the two diagonal lines of the rhombus area; and defining one of at least two values represented by the information marks according to the positions of the nominal positions and the information marks, so as to obtain the information represented by each code pattern.
 14. The data reading method according to claim 13, wherein the step of defining one of the at least two values is to determine the value represented by the information mark according to the orientation from the information mark to the corresponding nominal position.
 15. The data reading method according to claim 13, wherein the step of defining one of the at least two values is to determine the value represented by the information mark according to the position at which the information mark is located in the area formed by the corresponding nominal position.
 16. The data reading method according to claim 13, wherein the step of defining one of the at least two values is to determine the value represented by the information mark according to the orientation and distance between the information mark and the corresponding nominal position.
 17. The data reading method according to claim 13, wherein the step of defining one of the at least two values is to determine the value of the information mark according to the orientation of the information mark with respect to the center of the area formed by the corresponding nominal position.
 18. An image processing device for processing code pattern, which is used to process the code pattern according to claim 1, the image processing device comprising: a first device, which is used to optically read the code pattern, and convert the code pattern after optical reading into corresponding digital signal; a second device, which is connected to the first device, and used to execute procedures based on the digital signal, wherein the procedures comprising the means of: searching and determining a plurality of boundary marks from the plurality of marks in the code pattern; searching and determining at least one orientation mark from the marks in the code pattern; searching and determining the information marks from the marks in the code pattern, and determining the represented value based on the position of each information mark.
 19. An image processing device for processing code pattern, which is used to process the code pattern according to claim 7, the image processing device comprising: a first device, which is used to optically read the code pattern, and convert the code pattern after optical reading into corresponding digital signal; a second device, which is connected to the first device, and used to execute procedures based on the digital signal, wherein the procedures comprising the means of: searching and determining a plurality of boundary marks from the plurality of marks in the code pattern; searching and determining at least one orientation mark from the marks in the code pattern; searching and determining the information marks from the marks in the code pattern, and determining the represented value based on the position of each information mark. 